﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Web;

namespace ECSE6770.Payment
{
    public static class PaymentSettings
    {
        public static decimal TaxRate
        {
            get { return Decimal.Parse(AppSettings("TaxRate")); }
        }

        public static string PaymentRequestDescription
        {
            get { return AppSettings("PaymentRequestDesc"); }
        }

        public static string PayPalVersion
        {
            get { return AppSettings("PayPalVersion"); }
        }

        public static string PaymentCurrency
        {
            get { return AppSettings("PaymentCurrency"); }
        }

        private static string AppSettings(string key)
        {
            return ConfigurationManager.AppSettings[key];
        }
    }
}